package com.tsy.server.system.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 人员管理列表实体对象
 */
@Data
@ApiModel(value = "人员管理列表实体", description = "人员管理列表实体类")
public class UserListVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", example = "1")
    private Long userId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", example = "zhangsan")
    private String username;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", example = "zhangsan@qq.com")
    private String email;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", example = "张三")
    private String nickname;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像URL", example = "https://example.com/avatar.jpg")
    private String avatar;

    /**
     * 加入方式
     */
    @ApiModelProperty(value = "加入方式", example = "1")
    private String joinType;

    /**
     * 用户加入组织时间
     */
    @ApiModelProperty(value = "用户加入组织时间", example = "2025-01-01 10:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime joinTime;

    /**
     * 用户加入组织名称
     */
    @ApiModelProperty(value = "用户加入组织名称", example = "测试用户")
    private String userOrgName;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称", example = "管理员")
    private String roleName;

    /**
     * 角色标识
     */
    @ApiModelProperty(value = "角色标识", example = "admin")
    private String roleKey;

}